Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-developer is "notificator-history-events">

It allows to request the events that have been detected by the notifier in the chosen period.

Inputs

A JSON with these parameters:
dashboard string
The name of the dashboard where the event being notified was created
Widget string
The name of the widget where the event being notified was created
Event string
The name of the event to be observed with this node
Start Date date
Start date of the event search period
End Date date
End date of the event search period

Outputs

Returns an array containing the events that have been detected by the notifier in the search period

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.